const tableColumns = 
[
  {
    title: '序号',
    dataIndex: 'index',
    key: 'index',
    width: 100,
    fixed: 'left'
  },
  {
    title: '问题描述',
    dataIndex: 'description',
    key: 'description',
    width: 100,
  },
  {
    title: '问题关键词',
    dataIndex: 'keyWords',
    key: 'keyWords',
    width: 110,
  },
  {
    title: '问题类型',
    dataIndex: 'qsType',
    key: 'qsType',
    width: 100,
  },
  {
    title: '所属系统',
    dataIndex: 'system',
    key: 'system',
    width: 100,
  },
  {
    title: '问题状态',
    dataIndex: 'state',
    key: 'state',
    width: 100,
  },
  {
    title: '提交人',
    dataIndex: 'createdBy',
    key: 'createdBy',
    width: 100,
  },
  {
    title: '提交时间',
    dataIndex: 'createdAt',
    key: 'createdAt',
    width: 100,
  },
  {
    title: '操作',
    dataIndex: 'caozuo',
    key: 'caozuo',
    width: 100,
    fixed: 'right'
  },
];
const addRules = {
  qsType: [{ required: true, message: '请选择问题类型', trigger: 'change' }],
  keyWords: [{ type: 'array', required: true, message: '请选择问题关键词', trigger: 'change' }],
  description: [
    { required: true, message: '请输入问题描述', trigger: 'blur' },
    { min: 0, max: 300, message: '限制300个字符', trigger: 'blur' },
  ],
  reply: [
    { required: true, message: '请输入内容', trigger: 'blur' },
    { min: 0, max: 300, message: '限制300个字符', trigger: 'blur' },
  ],
  // files: [{ type: 'array', required: true, message: '请选择附件', trigger: 'change' }],
  phone: [{pattern: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/, message: '请输入正确的电话格式' ,trigger: 'blur' }],

}
export default {
  tableColumns,
  addRules
}